package com.wzc.system.service.impl;

import com.wzc.basic.service.impl.BaseServiceImpl;
import com.wzc.system.domain.DictionaryType;
import com.wzc.system.mapper.DictionaryDetailMapper;
import com.wzc.system.mapper.DictionaryTypeMapper;
import com.wzc.system.service.IDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class DictionaryTypeServiceImpl extends BaseServiceImpl<DictionaryType> implements IDictionaryTypeService {

    @Autowired
    private DictionaryDetailMapper dictionaryDetailMapper;
    @Autowired
    private DictionaryTypeMapper dictionaryTypeMapper;

    @Override
    @Transactional
    public void remove(Long id) {
        dictionaryDetailMapper.deleteBybytes_id(id);
        dictionaryTypeMapper.remove(id);
    }
    @Override
    @Transactional
    public void patchDelete(List<Long> ids) {
        dictionaryDetailMapper.patchDeleteBybytes_id(ids);
        dictionaryTypeMapper.patchDelete(ids);
    }








}
